package com.hifar.test.structure.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.model.BaseModel;
import com.hifar.plat.AopOption.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 资源-人员-培训计划
 * @TableName hf_env_res_person_train_plan
 */
@TableName(value ="hf_env_res_person_train_plan")
@Data
public class HfEnvResPersonTrainPlan extends BaseModel implements Serializable {

    /**
     * 培训主题
     */
    @Excel(name = "计划名称", sort = 1)
    private String trainTheme;

    /**
     * 培训年份
     */
    @Excel(name = "年度", sort = 2,format = "yyyy")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy")
    @DateTimeFormat(pattern = "yyyy")
    private Date trainYear;

    /**
     * 培训时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date trainTime;

    /**
     * 培训内容
     */
    @Excel(name = "培训内容", sort = 3)
    private String trainContent;

    /**
     * 培训老师
     */
    @Excel(name = "培训人员", sort = 4)
    private String trainTeacher;

    /**
     * 培训方式  1 线下  2 线上
     */
    private Integer trainMode;

    /**
     * 开始时间
     */
    @Excel(name = "开始时间", sort = 6, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", sort = 7, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}